package org.example.order.case3;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 1、验证@Order对bean执行顺序的影响
 *
 * @author lizongyang
 * @date 2023/09/18
 */
@Slf4j
public class OrderMain {
    public static void main(String[] args) {
        log.info("========验证@Order对bean执行顺序的影响========");
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
        // 设置扫描路径
        context.scan("org.example.order.case3");
        // 刷新
        context.refresh();
    }
}